echo off

setlocal enabledelayedexpansion

set workDir=D:\\video
set exePath=D:\\N_m3u8DL-CLI_v3.0.2_with_ffmpeg_and_SimpleG\\N_m3u8DL-CLI_v3.0.2.exe

set str=%1
set str=!str:m3u8download://=!
if /i "!str:~0,6!"=="http//" set str=http://!str:~6!
if /i "!str:~0,7!"=="https//" set str=https://!str:~7!
set str=!str:,= !

echo params is %*
echo transform str is !str!

echo.

set /p saveName="please input fileName "

echo.

@REM echo execute command is 
@REM echo start cmd /c !exePath! !str! --saveName %saveName% --workDir !workDir! --enableDelAfterDone

@REM echo.

echo is continue?

pause

start cmd /c !exePath! !str! --saveName %saveName% --workDir !workDir! --enableDelAfterDone

endlocal